{{if $.error}}
<div class="ui error message">
    <ul class="list">
        <li>{{$.errTitle}}</li>
    </ul>
</div>
{{end}}
<form class="ui form" id="form_user">
    <div class="  field " style="display:none">
        <label>Id</label>
        <input type="text" name="Id" value="{{$.user.Id}}">
    </div>
    <div class="  field ">
        <label>用户名</label>
        <input type="text" name="Username" value="{{$.user.Code}}"> {{if $.errmap}} {{$errCode := index $.errmap "errCode"}} {{if $errCode}}
        <div class="ui pointing red basic label">{{$errCode}} </div>
        {{end}} {{end}}
    </div>
    <div class=" field ">
        <label>密码</label>
        <input type="password" name="Password" value="{{$.user.Text}}"> {{if $.errmap}} {{$errText := index $.errmap "errText"}} {{if $errText}}
        <div class="ui pointing red basic label">{{$errText}} </div>
        {{end}} {{end}}
    </div>
</form>
<div class="row">
    <p>&nbsp</p>
</div>
<div class="ui buttons">
    <button class="ui button active" onclick="cancle()">Cancel</button>
    <div class="or"></div>
    <button class="ui positive button" onclick="saveform('/user/config/save','form_user')">Save</button>
</div>
